package com.yiyuan.app.entity.result;

import com.guaike.core.entity.annotation.DictConvert;
import com.yiyuan.app.entity.constant.BusinessDictCodeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: zhangxilin
 * @Date: 2024/5/31
 */
@ApiModel("设备基本信息实体")
@Data
public class BaseDeviceVO implements Serializable {

    @ApiModelProperty("设备id")
    private Long id;

    @ApiModelProperty("设备序列号")
    private String serialNumber;

    @ApiModelProperty("机位编号")
    private String positionNo;

    @ApiModelProperty("是否旋转，潮玩时判断，如果需要旋转则视频画面转180度显示")
    private Boolean isRotate;

    @ApiModelProperty("状态（1：空闲，2：热玩中，3：维修中,4:离线，5：当前用户可直接进行游戏）")
    @DictConvert(code = BusinessDictCodeConstant.GAME_ROOM_STATUS)
    private Integer status;

    @ApiModelProperty("用户ID-热玩中时有值")
    private Long userId;

    @ApiModelProperty("用户昵称-热玩中时有值")
    private String nickname;

    @ApiModelProperty("用户头像-热玩中时有值")
    private String avatarurl;

    @ApiModelProperty("我的VIP等级-热玩中时有值")
    private Integer myVipLevel;

    @ApiModelProperty("倒计时秒数，status 为5时有")
    private Integer countdown;
}
